package com.ruoyi.edu.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import com.ruoyi.common.annotation.Excel;

import java.io.Serializable;
import java.util.Date;
import java.util.Map;
import java.util.HashMap;
import java.math.BigDecimal;

/**
 * 课程对象 edu_chapter
 * 
 * @author niruichen
 * @date 2020-12-22
 */
@Data
@ToString
@EqualsAndHashCode
@NoArgsConstructor
@Accessors(chain = true)
@TableName("edu_chapter")
public class EduChapter implements Serializable {

private static final long serialVersionUID=1L;


    /** 章节ID */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    /** 课程ID */
    @Excel(name = "课程ID")
    private String courseId;

    /** 章节名称 */
    @Excel(name = "章节名称")
    private String title;

    /** 显示排序 */
    @Excel(name = "显示排序")
    private Integer sort;

    /** 创建时间 */
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 更新时间 */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @TableField(exist = false)
    private Map<String, Object> params = new HashMap<>();
}
